<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: UDT serialization flags</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">UDT serialization flags</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>passed as 'sudt_flags' parameter of helpers declared in <a class="el" href="typeinf_8hpp.html#a653346f8c2f0accc90038d22c91abd09" title="Macro to declare common tinfo_t related functions. ">DECLARE_TINFO_HELPERS</a> </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga7becf33db69eeae6168435acb39b0010"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7becf33db69eeae6168435acb39b0010"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_u_d_t__.html#ga7becf33db69eeae6168435acb39b0010">SUDT_SORT</a>&#160;&#160;&#160;0x0001</td></tr>
<tr class="memdesc:ga7becf33db69eeae6168435acb39b0010"><td class="mdescLeft">&#160;</td><td class="mdescRight">fields are not sorted by offset, sort them first <br /></td></tr>
<tr class="separator:ga7becf33db69eeae6168435acb39b0010"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab935733a0cdd7a9dd608f372c0164381"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_u_d_t__.html#gab935733a0cdd7a9dd608f372c0164381">SUDT_ALIGN</a>&#160;&#160;&#160;0x0002</td></tr>
<tr class="memdesc:gab935733a0cdd7a9dd608f372c0164381"><td class="mdescLeft">&#160;</td><td class="mdescRight">recalculate field alignments, struct packing, etc  <a href="#gab935733a0cdd7a9dd608f372c0164381">More...</a><br /></td></tr>
<tr class="separator:gab935733a0cdd7a9dd608f372c0164381"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac25d2bd3d8185187ceae4cc16f4cc3dc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac25d2bd3d8185187ceae4cc16f4cc3dc"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_u_d_t__.html#gac25d2bd3d8185187ceae4cc16f4cc3dc">SUDT_GAPS</a>&#160;&#160;&#160;0x0004</td></tr>
<tr class="memdesc:gac25d2bd3d8185187ceae4cc16f4cc3dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">allow to fill gaps with additional members (_BYTE[]) <br /></td></tr>
<tr class="separator:gac25d2bd3d8185187ceae4cc16f4cc3dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa2d5efeca5c98ebbe16208d506df4231"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_u_d_t__.html#gaa2d5efeca5c98ebbe16208d506df4231">SUDT_UNEX</a>&#160;&#160;&#160;0x0008</td></tr>
<tr class="memdesc:gaa2d5efeca5c98ebbe16208d506df4231"><td class="mdescLeft">&#160;</td><td class="mdescRight">references to nonexistent member types are acceptable  <a href="#gaa2d5efeca5c98ebbe16208d506df4231">More...</a><br /></td></tr>
<tr class="separator:gaa2d5efeca5c98ebbe16208d506df4231"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeaa511ce041efaeb0ce9659fcb35b7a7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaeaa511ce041efaeb0ce9659fcb35b7a7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_u_d_t__.html#gaeaa511ce041efaeb0ce9659fcb35b7a7">SUDT_FAST</a>&#160;&#160;&#160;0x0010</td></tr>
<tr class="memdesc:gaeaa511ce041efaeb0ce9659fcb35b7a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">serialize without verifying offsets and alignments <br /></td></tr>
<tr class="separator:gaeaa511ce041efaeb0ce9659fcb35b7a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9a49c1f8d93c62e3a8c3ba35f10be585"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga9a49c1f8d93c62e3a8c3ba35f10be585"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_u_d_t__.html#ga9a49c1f8d93c62e3a8c3ba35f10be585">SUDT_CONST</a>&#160;&#160;&#160;0x0040</td></tr>
<tr class="memdesc:ga9a49c1f8d93c62e3a8c3ba35f10be585"><td class="mdescLeft">&#160;</td><td class="mdescRight">only for serialize_udt: make type const <br /></td></tr>
<tr class="separator:ga9a49c1f8d93c62e3a8c3ba35f10be585"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc68f14b473c222381efd52ca7cb90d4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gadc68f14b473c222381efd52ca7cb90d4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_u_d_t__.html#gadc68f14b473c222381efd52ca7cb90d4">SUDT_VOLATILE</a>&#160;&#160;&#160;0x0080</td></tr>
<tr class="memdesc:gadc68f14b473c222381efd52ca7cb90d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">only for serialize_udt: make type volatile <br /></td></tr>
<tr class="separator:gadc68f14b473c222381efd52ca7cb90d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1e082c951f7e37bafdf409d66aa785a2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1e082c951f7e37bafdf409d66aa785a2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_u_d_t__.html#ga1e082c951f7e37bafdf409d66aa785a2">SUDT_TRUNC</a>&#160;&#160;&#160;0x0100</td></tr>
<tr class="memdesc:ga1e082c951f7e37bafdf409d66aa785a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">serialize: truncate useless strings from fields, fldcmts <br /></td></tr>
<tr class="separator:ga1e082c951f7e37bafdf409d66aa785a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="gab935733a0cdd7a9dd608f372c0164381"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SUDT_ALIGN&#160;&#160;&#160;0x0002</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>recalculate field alignments, struct packing, etc </p>
<p>to match the offsets and size info </p>

</div>
</div>
<a class="anchor" id="gaa2d5efeca5c98ebbe16208d506df4231"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SUDT_UNEX&#160;&#160;&#160;0x0008</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>references to nonexistent member types are acceptable </p>
<p>in this case it is better to set the corresponding <a class="el" href="structudt__member__t.html#aa2531c429ae5d76784c359fd1ef07105" title="field alignment (shift amount) ">udt_member_t::fda</a> field to the type alignment. if this field is not set, ida will try to guess the alignment. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
